@extends('layout.admin')

@section('title','商品列表')

@section('content')
  <div class="row-fluid"> 
   <div class="box gradient"> 
    <div class="title"> 
     <h4> <span>商品列表</span> </h4> 
    </div> 
    <!-- End .title --> 
    <div class="content top"> 
     <div id="datatable_example_wrapper" class="dataTables_wrapper" role="grid">
     <form>

      <div class="row-fluid table_top_bar">
       <div class="span12">
        <div class="to_hide_phone">
         <div class="dataTables_filter" id="datatable_example_filter">
          <!-- <label>搜索<input aria-controls="datatable_example" name="keyword" type="text" value="{{$request->input('keyword')}}" /><button class="btn btn-primary"><i class="icon-search"></i></button></label> -->
         </div>

        </div>
       </div>
      </div>
      
      <table id="datatable_example" class="table table-striped full table-bordered dataTable"> 
       <thead> 
        <tr role="row">
        <th class="to_hide_phone ue no_sort sorting_disabled" role="columnheader" rowspan="1" colspan="1" style="width: 203px;" aria-label=" Info ">ID</th>
        <th class="to_hide_phone ue no_sort sorting_disabled" role="columnheader" rowspan="1" colspan="1" style="width: 203px;" aria-label=" Info ">名称</th>
         <th class="to_hide_phone ue no_sort sorting_disabled" role="columnheader" rowspan="1" colspan="1" style="width: 203px;" aria-label=" Info ">价格</th>
         <th class="to_hide_phone ue no_sort sorting_disabled" role="columnheader" rowspan="1" colspan="1" style="width: 203px;" aria-label=" Info ">分类</th>
         <th class="to_hide_phone ue no_sort sorting_disabled" role="columnheader" rowspan="1" colspan="1" style="width: 203px;" aria-label=" Info ">库存</th>
         <th class="to_hide_phone ue no_sort sorting_disabled" role="columnheader" rowspan="1" colspan="1" style="width: 203px;" aria-label=" Info ">浏览量</th>
         <th class="to_hide_phone ue no_sort sorting_disabled" role="columnheader" rowspan="1" colspan="1" style="width: 203px;" aria-label=" Info ">颜色</th>
         <th class="to_hide_phone ue no_sort sorting_disabled" role="columnheader" rowspan="1" colspan="1" style="width: 203px;" aria-label=" Info ">尺寸</th>
         <th class="to_hide_phone ue no_sort sorting_disabled" role="columnheader" rowspan="1" colspan="1" style="width: 203px;" aria-label=" Info ">状态</th>
         <th class="to_hide_phone ue no_sort sorting_disabled" role="columnheader" rowspan="1" colspan="1" style="width: 203px;" aria-label=" Info ">操作</th>
         
        </tr> 
       </thead> 
       <tbody role="alert" aria-live="polite" aria-relevant="all">
        @foreach($goods as $k=>$v)
        <tr class="even"> 
         <td class=" ">{{$v->id}}</td> 
         <td class=" ">{{$v->name}}</td> 
         <td class=" ">{{$v->price}}</td> 
          <td class=" ">{{$v->cate_id}}</td> 
          <td class=" ">{{$v->kucun}}</td> 
          <td class=" ">{{$v->views}}</td> 
          <td class=" ">{{$v->color}}</td> 
          <td class=" ">{{$v->size}}</td> 
          <td class=" ">{{$v->status}}</td> 
         <td class="ms ">
          
           <div class="btn-group1"> 
           <a href="/good/edit?id={{$v->id}}" class="btn btn-small" rel="tooltip" data-placement="left" data-original-title=" edit "><i class="gicon-edit"></i></a> 
            
           <a href="/good/delete?id={{$v->id}}" class="btn  btn-small" rel="tooltip" data-placement="bottom" data-original-title="Remove"><i class="gicon-remove "></i></a> 
          </div>
  </td> 
        </tr>
        @endforeach
       </tbody>
      </table>
      <div class="row-fluid control-group full top">
       <div class="span4 to_hide_tablet">
        <div id="datatable_example_length" class="dataTables_length">
         <!-- <label>显示 
         <select size="1" name="num" aria-controls="datatable_example">
         <option value="10" selected="selected" @if($request->input('num') == 10) selected @endif>10</option>
         <option value="25" @if($request->input('num') == 25) selected @endif>25</option>
         <option value="50" @if($request->input('num') == 50) selected @endif>50</option>
         <option value="100" @if($request->input('num') == 100) selected @endif>100</option>
         </select>条</label> -->
        </div>
       </div>
       <div class="span8 pagination">
       {!! $goods->appends($request->all())->render() !!}
        
       </div>
      </div>
     </div> 

@endsection